<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>个人中心</title>
    <link rel="stylesheet" href="<c:url value='/resource/wechat/css/frozen.css'/>">
    <link rel="stylesheet" type="text/css" href="<c:url value='/resource/wechat/css/main.css'/>"/>
    <script type="text/javascript" src="<c:url value='/resource/wx/newjs/common.js'/>"></script>

</head>

<body class="body_bg" ontouchstart>

<section class="ui-container">
    <div class="ui-form">
        <form action="#">
            <div id="zhxx" onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">个人信息</a>
                <c:if test="${rzResult=='0'}">【未认证】</c:if>
                <c:if test="${rzResult=='1'}">【已认证】</c:if>
                <c:if test="${rzResult=='-1'}">【未通过认证】</c:if>
                <c:if test="${rzResult=='2'}">【认证中】</c:if>
            </div>
            <%--<div id="wdyw" onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">--%>
            <%--<a href="javascript:void(0)">我的业务</a>--%>
            <%--</div>--%>
            <div onmouseover="this.style.cursor='pointer'" id="wdyy" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">我的预约</a>
            </div>
            <div onmouseover="this.style.cursor='pointer'" id="wdzx" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">我的咨询</a>
            </div>
            <div onmouseover="this.style.cursor='pointer'" id="wdjb" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">我的举报</a>
            </div>
            <div onmouseover="this.style.cursor='pointer'" id="smrz" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">实名核身</a>
            </div>


        <%--<div id="xxbd" onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">
                <a href="javascript:void(0)">手机信息绑定</a>
            </div>--%>
            <%--<div id="jszbd"  onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">--%>
            <%--<a href="javascript:void(0)">驾驶证信息绑定</a>--%>
            <%--</div>--%>
            <%--<div id="clxxbd"  onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">--%>
            <%--<a href="javascript:void(0)">车辆信息绑定</a>--%>
            <%--</div>--%>
            <%--<div id="wdjzxx"  onmouseover="this.style.cursor='pointer'" class="ui-form-item ui-form-item-link ui-border-b">--%>
            <%--<a href="javascript:void(0)">我的局长信箱</a>--%>
            <%--</div>--%>
            <%--<div class="ui-form-item ui-form-item-link ui-border-b">
               <a href="#">好友推荐</a>
           </div>
            <div class="ui-form-item ui-form-item-link ui-border-b">
               <a href="#">意见反馈</a>
           </div>
            <div class="ui-form-item ui-form-item-link ui-border-b">
               <a href="#">新手引导</a>
           </div>
            <div class="ui-form-item ui-form-item-link ui-border-b">
               <a href="#">关于帮助</a>
           </div>--%>
        </form>
    </div>
</section>
<link rel="stylesheet" type="text/css" href="<c:url value='/resource/wechat/css/frozen1.css'/>"/>
<div class="ui-btn-wrap" style="margin-top: 20px;">
    <a href="javascript:apply();" class="ui-btn-lg ui-btn-primary">退出登录</a>

</div>
<div class="ui-btn-wrap">
    <a href="javascript:logout();" class="ui-btn-lg ui-btn-primary">解绑账号</a>
</div>
<div style="display: none" id="message">
    <section class="ui-container">
        <div class="ui-newstips-wrap">
            <div class="ui-newstips">
                <div id="errormsg"></div>
            </div>
        </div>
    </section>
</div>
<style type="text/css">
    .ui-newstips:after {
        display: none
    }
</style>
</body>
<script src="<c:url value='/resource/js/jquery-2.0.min.js'/>"></script>
<script>
    $(function () {
        $("#zhxx").click(function () {
            <%--window.location.href = "<c:url value='/weixin/wx_member/details?pt=${pt}&rzResult=${rzResult}&userGuid=${userGuid}'/>";--%>
            window.location.href = "<c:url value='/weixin/wx_member/details?pt=${pt}&rzResult=${rzResult}&userGuid=${userGuid}'/>";
        });
/*        $("#wdyw").click(function () {
            window.location.href = "<c:url value='/weixin/wx_member/business?userGuid=${userGuid}' />";
        });
        $("#xxbd").click(function () {
            window.location.href = "<c:url value='/weixin/wx_member/xxbd' />";
        });
        $("#wdbj").click(function () {
            window.location.href = "<c:url value='/weixin/transact/index?userGuid=${userGuid}' />";
        });*/
        // 我的预约
        $("#wdyy").click(function () {
            window.location.href = "<c:url value='/api/police/myorder?userGuid=${userGuid}' />";
        });
        // 我的咨询
        $("#wdzx").click(function () {
            window.location.href = "<c:url value='/weixin/wx_member/bszx/myindex?pt=W' />";
        });
        // 我的举报
        $("#wdjb").click(function () {
            window.location.href = "<c:url value='/weixin/wx_member/bsjb/myindex?pt=W' />";
        });
        $("#smrz").click(function () {
            window.location.href = "<c:url value='/weixin/wx_member/memberAuth?userGuid=${userGuid}' />";
        });
    })
</script>
<script type="text/javascript">
    function apply() {
        $.ajax({
            url: "<c:url value='/weixin/percenter/userOut'/>",
            type: 'get',
            success: function (resp) {
                $('#message').show();
                $("#errormsg").text(resp.msg);
                setTimeout(function () {
                    window.location.href = "<c:url value='/weixin/percenter/oauth' />";
                }, 800);

            }
        });
    }

    /**
     * 解绑微信账号
     */
    function logout () {
        $.ajax({
            url: "<c:url value='/weixin/percenter/loginout'/>",
            type: 'get',
            success: function (resp) {
                $('#message').show();
                $("#errormsg").text(resp.msg);
                setTimeout(function () {
                    window.location.href = "<c:url value='/weixin/percenter/oauth' />";
                }, 800);

            }
        });
    }
</script>

</html>